<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 , minimum-scale=1.0,maximum-scale =1.0,user-scalable=no">
<title>我的</title>
<link rel="stylesheet" type="text/css" href="../css/mine.css">
<link rel="stylesheet" type="text/css" href="../css/home.css">
<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	var openID;
	var id_name;
	$(function(){
		if(GetQueryString("openID")){
			openID = GetQueryString("openID");
			id_name = decodeURI(GetQueryString("id_name"));
			localStorage.setItem("ll_openID", openID);
			localStorage.setItem("ll_id_name", id_name);
		}else{
			openID = localStorage.getItem("ll_openID");
			id_name = localStorage.getItem("ll_id_name");
		}
		
		$("#right img").attr("src","../img/lv2.png");
		$("identify_state img").attr("src","../img/Authentication.png");
		$("#detail").text("已认证"); 
		//显示用户姓名 和认证状态
		//截取字符串的第一个自取
		var re_name;
		if(id_name.length=="3"){
			re_name=id_name.substring(1, 2);
		}else if(id_name.length=="2"){
			re_name=id_name.substring(0, 1);
		};	
		//将第一个字符替换成*
		$("#left").text(id_name.replace(re_name, "*"));
	});

	/* 获取url后的字符串 */
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            return (r[2]);
        }
        return null;
    }
	
	function openWindows(url){
		window.location=url;	
	}
	
	function openWindows1(){
		window.location = "share.html?openID=" + openID;
	}

</script>
<style></style>
</head>


<body>
<div id="top">
	<div id="right"><img src="../img/role.png"></div>
	<div id="left">00</div>
	<div id="left1"><img src="../img/Authentication.png"></div>
</div>

<div id="b">
	<div id="b2" onclick="openWindows('jiesuanyinhangka.html');">
		<div id="b3"><img src="../img/icon_yinhanka.png" class="mg"></div>
		<div id="b4">结算银行卡</div>
		<div id="b5"><img src="../img/icon_enter.png" class="mg1"></div>
	</div>
</div>

<div id="b">
	<div id="b2" onclick="openWindows('wallet.html');">
		<div id="b3"><img src="../img/icon_qianbao.png" class="mg"></div>
		<div id="b4">我的分享</div>
		<div id="b5"><img src="../img/icon_enter.png" class="mg1"></div>
	</div>
</div>

<div id="b">
 	<div id="b2" onclick="openWindows('kuaijieyinhangkaguanli.html');">
 		<div id="b3"><img src="../img/icon_kuaijieyhk.png" class="mg"></div>
 		<div id="b4">我的信用卡</div>
 		<div id="b5"><img src="../img/icon_enter.png" class="mg1"></div>
 	</div>
</div>
<div id="b">
 	<div id="b2" onclick="openWindows('contact.html');">
 		<div id="b3"><img src="../img/icon_tel.png" class="mg"/></div>
 		<div id="b4">联系我们</div>
 		<div id="b5"><img src="../img/icon_enter.png"  class="mg1"/></div>
 	</div>
</div>
<div id="b">
 	<div id="b2" onclick="openWindows1();">
 		<div id="b3"><img src="../img/icon_user_p.png" class="mg"/></div>
 		<div id="b4">分享好友</div>
 		<div id="b5"><img src="../img/icon_enter.png"  class="mg1"/></div>
 	</div>
</div>
</html>